package com.wr.dao;

import com.wr.pojo.Resume;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @author 王瑞
 * @description:
 * @date 2020/2/23  20:15
 */

public interface ResumeDao extends JpaRepository<Resume,Integer>, JpaSpecificationExecutor<Resume> {

    @Query("from Resume where id = ?1")
    Resume findByJpaQl(Integer id);


    @Query(value = "select * from tb_resume where id = ?1",nativeQuery = true)
    Resume findBySql(Integer id);
}
